// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import YDUI from 'vue-ydui';
import Icon from 'vue-awesome'
import Vuex from "vuex";
import 'vue-ydui/dist/ydui.base.css';
import 'vue-ydui/dist/ydui.rem.css';
import { InfiniteScroll } from 'vue-ydui/dist/lib.rem/infinitescroll';
//引入私有文件
import './assets/js/ydui.flexibl.js';
import './assets/css/common.css'
import { DatetimePicker } from 'mint-ui';
import 'mint-ui/lib/style.css'
import './data/date.js'
Vue.component(DatetimePicker.name, DatetimePicker);
Vue.use(YDUI)
Vue.component('icon', Icon);
Vue.component(InfiniteScroll.name, InfiniteScroll);
Vue.config.productionTip = false;
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    count: 0
  },
  mutations: {
    increment(state) {
      state.count++
      console.log(state.count);
    }
  }
});
store.commit('increment')
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
